package my.test.qualifier.bean;

import my.test.constructor.bean.collection.DataSource;
import my.test.constructor.bean.collection.NewPerson;
import my.test.constructor.bean.collection.RichPerson;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
	public static void main(String[] args) {
		ApplicationContext bf = new ClassPathXmlApplicationContext("/my/test/qualifier/bean/qualifierTest.xml");
		//index属性
		Person person=(Person)bf.getBean("person");
		System.out.println(person);
	}
}
